using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Category
/// </summary>
public class Category
{
    #region Fields
    decimal _catID;
    string _catName;
    decimal _parentID;
    bool _leaf; 
    #endregion

    #region Properties
    public decimal CatID
    {
        get { return _catID; }
        set { _catID = value; }
    }

    public string CatName
    {
        get { return _catName; }
        set { _catName = value; }
    }

    public decimal ParentID
    {
        get { return _parentID; }
        set { _parentID = value; }
    }

    public bool Leaf
    {
        get { return _leaf; }
        set { _leaf = value; }
    } 
    #endregion

    public Category() { }

    public Category(decimal catID, string catName, decimal parentID, bool leaf)
    {
        _catID = catID;
        _catName = catName;
        _parentID = parentID;
        _leaf = leaf;
    }
}
